#include <iostream>
#include <fstream>
#include <cstring>

int main(int argc, char* argv[])
{
    const char* head = "#pragma once\n\n";
    std::fstream of("data.h");
    of.write(head, strlen(head));

    char buff[100];
    for (int i = 0; i < 5; i++) {
        sprintf(buff, "#define DATA%d %d\n", i+1, i*i);
        of.write(buff, strlen(buff));
    }

    of.close();
    return 0;
}